package com.pig4cloud.pigx.strategy.mapstruct;

import com.pig4cloud.pigx.strategy.bo.StrategyTaskContractCacheBO;
import com.pig4cloud.pigx.strategy.entity.StrategyTaskContract;
import com.pig4cloud.pigx.strategy.vo.StrategyTaskContractVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * StrategyTaskContractStruct
 *
 * @since 2022/11/24 11:37
 */
@Mapper
public interface StrategyTaskContractStruct {

    StrategyTaskContractStruct INSTANCE = Mappers.getMapper(StrategyTaskContractStruct.class);

    /**
     * list -> VOList
     *
     * @param list list
     * @return {@link List< StrategyTaskContractVO>}
     * @since 2022/2/8
     */
    List<StrategyTaskContractVO> list2VOList(List<StrategyTaskContract> list);

    /**
     * entity -> cacheBO
     * `
     *
     * @param entity entity
     * @return {@link StrategyTaskContractCacheBO}
     * @since 2022/2/8
     */
    StrategyTaskContractCacheBO entity2CacheBO(StrategyTaskContract entity);

}
